package com.xihuanjun.healthcode.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xihuanjun.healthcode.entity.ChangeRecord;
import com.xihuanjun.healthcode.entity.dto.ChangeRecordDTO;
import com.xihuanjun.healthcode.entity.query.ChangeRecordQuery;
import com.xihuanjun.healthcode.entity.vo.ChangeRecordVO;
import com.xihuanjun.healthcode.entity.vo.UserVO;

import java.text.ParseException;
import java.util.List;

/**
 * (ChangeRecord)表服务接口
 *
 * @author makejava
 * @since 2022-10-25 11:51:08
 */
public interface ChangeRecordService extends IService<ChangeRecord> {


    /**
     * 新增一条变更记录
     * @param dto
     * @return
     */
    boolean save(ChangeRecordDTO dto,long operator) throws ParseException;

    boolean update(ChangeRecordDTO dto,long operator);


    /**
     * 获取一条精确的记录
     * @param id
     * @return
     */
    ChangeRecordVO get(long id);

    IPage<ChangeRecordVO> listByPage(ChangeRecordQuery query);

    /**
     * 根据身份证号查询未处理数据
     * @param idCard
     * @return
     */
    List<ChangeRecordVO> checkIdCard(String idCard);

    /**
     * 根据所传入的记录编号，生成新的全量数据
     * @param ids
     * @return
     */
    String produce(String ids);

}

